
public class Merge {
	public static void main (String[] args){

		String str[] = new String[3];
		str[0] = "abc";
		str[1] = "def";
		str[2] = "ghi";
		
		System.out.println(Merge(str));
	}
		
		public static String[] Merge(String[] str){
				for(int x = str.length-1;x>=0; x--){
					System.out.println(str[x]);
					Sort(str[x]);
				}

			/*String result[] = new String[2];
			//String s1 = (String) a[0];
				for(int index = a.length; index <=0; index--){
					String s = (String) a[index];
					int halveIndex = s.length()/2;
					
					
				}*/
					
			return null;
	}
		public static String Sort(String str){
			String st = (String) str;
			System.out.println(st);
			return st;							//change to st.ArraySort (API)
			
			
		}
}
